package com.ant.cn.action;

import com.ant.cn.base.BaseAction;
import com.ant.cn.bean.UserBean;

public class UserAction extends BaseAction {
	public UserBean user;
	
	public UserBean getUser() {
		return user;
	}

	public void setUser(UserBean user) {
		this.user = user;
	}

	@Override
	public String execute() throws Exception {
		System.out.println(TAG);
		if(user!=null)
			System.out.println(user.toString());
		return SUCCESS;
	}
	
	public String login(){
		System.out.println(user.toString());
		System.out.println("login method invoke ant");
		return "login";
	}
	
	public String regist(){
		System.out.println("regist methods invoke ant");
		return "regist";
	}
	public String ant(){
		
		return "ant";
	}

}
